﻿@{
    ViewBag.Title = "新增使用状态";
}
@model FMS.UI.Areas.Factory.ViewModel.Factory_Machines_UseState
@section headsecion{
    <style type="text/css">
        .tbList tr {
            height: 40px;
        }

        .tbList {
            border: 1px solid #ddd;
            height: 99.5%;
            border-collapse: collapse;
            margin: 0px;
            padding: 0px;
            width: 100%;
            border-top-width: 0px;
            border-bottom-width: 0px;
            border-left-width: 0px;
            border-right-width: 0px;
        }

            .tbList td, th {
                border: 1px solid #ddd;
                padding: 0px 5px;
            }

        body {
            margin: 0px;
            align-self: center;
        }

        #form0 {
            margin: 0px;
            padding: 0px;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            // 去掉所有input的autocomplete, 显示指定的除外
            $('input:not([autocomplete]),textarea:not([autocomplete]),select:not([autocomplete])').attr('autocomplete', 'off');

        })

        function begin() {
         }

        function complete(xhrobj) {
            $.msgProcess(xhrobj.responseText, function () {
                $.globalHelper.closeCommonWindow();
                $.globalHelper.reloadSeletecTabDataGrid();
            })
        }

    </script>
}

@using (Ajax.BeginForm(new AjaxOptions() { OnBegin = "begin", OnComplete = "complete" }))
{
    <table id="tbList" class="tbList">
        <tr>
            <td style="width:120px; " align="center">@Html.DisplayNameFor(o => o.UName)</td>
            <td>@Html.TextBoxFor(o => o.UName)  @Html.ValidationMessageFor(o => o.UName)</td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:center;border:0px solid white;margin-bottom:0px">
                <input type="submit" value="确定" style="height: 27px; width: 56px; margin-top: 26px; cursor: pointer" />
            </td>
        </tr>
    </table>
}

